import base from '@/api/baseurl';
import request from '@/utils/request'

export function findAnalysis(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/findAnalysis',
    method: 'get',
    params: query
  })
}

//单行删除
export function deleteAnalysis(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/deleteAnalysis',
    method: 'get',
    params: query
  })
}


export function addAnalysis(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/addAnalysis',
    method: 'post',
    data
  })
}

export function updateAnalysis(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/updateAnalysis',
    method: 'post',
    data
  })
}

export function deleteAnalysisBatch(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/deleteAnalysisBatch',
    method: 'post',
    data
  })
}


//查询代码类型
export function findalys_type(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/findalys_type',
    method: 'get',
    params: query
  })
}


//获取自增解析编号
export function addalys_code(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Analysis/addalys_code',
    method: 'get',
    params: query
  })
}

